package com.zoo.diannaopeijian.service;

import com.zoo.diannaopeijian.domain.ShipmentItem;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 出货项服务
 */
public interface ShipmentItemService {
    /**
     * 新增出货项
     * @param shipmentItem
     * @return
     */
    boolean insertShipmentItem(ShipmentItem shipmentItem);

    @Transactional
    /**
     * 批量新增出货项
     */
    boolean insertShipmentItems(List<ShipmentItem> shipmentItemList);

    /**
     * 根据(出货记录)获取出货项
     * @param shipmentRecordId
     * @return 出货项(拓展对象)
     */
    List<Map<String, Object>> getShipmentItemsByShiptRecordId(Integer shipmentRecordId);

    /**
     * 删除出货项
     * @param shipmentItem
     * @return 被删除的出货项
     */
    List<ShipmentItem> deleteShipmentItems(ShipmentItem shipmentItem);
}
